<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/list.css"/>
		<script src="./Public/home/js/jquery-1.7.2.min.js"></script>
		<script src="./Public/home/js/style.js"></script>
	</head>
	<body>
	<!--header-->
	<div id="header">
		<div class="header"> 
			<div class="headerTop">
				<div class="headerLeft">
					<h1>
						<a href="{{U('Index/index')}}"><img src="./Public/home/images/logo1_cc09ff8.png"/></a>
					</h1>
				</div>
				<div class="headerRight">
					<ul class="header-car">
						<li class="shop-car">
							<a href="{{U('Cart/index')}}">购物车({{if value="isset($_SESSION['cart'])"}} {{$_SESSION['cart']['total_rows']}} {{else}} 0{{endif}})</a>
						</li>
					</ul>
					<!--搜索-->
					<div class="select">
						<form action="{{U('List/index')}}" method="post">
							<input type="text" name="select" class="select-box" />
							<input type="submit" value="So索" class="select-btn"/>
						</form>
					</div>
					<ul class="navbar">
						<li><a href="{{U('Index/index')}}" class="hover">首页</a></li>
						{{foreach from="$cateData" value="$c"}}
						<li><a href="{{U('List/index',['cid'=>$c['cid']])}}">{{$c['cname']}}</a></li>
						{{endforeach}}
					</ul>
				</div>
			</div>
			<div class="header-bottom">
				<div class="header-bottom-box">
					<div class="bottom-left-hover">
						<div class="header-bottom-left">全部商品分类</div>
						<ul class="nav-list">
						{{foreach from="$nav" value="$v"}}
						<li>
							<a href="{{U('List/index',['cid'=>$v['cid']])}}" class="nav-list-title">{{$v['cname']}}</a>
							{{foreach from="$v['value']" value="$value"}}
							<a href="{{U('List/index',['cid'=>$value['cid']])}}" ">{{$value['cname']}}</a>
							{{endforeach}}
						</li>
						{{endforeach}}
					</ul>
					</div>
					<ul class="header-bottom-right">
						<li class="li-nav">
							<span style="padiving-left: 15px;">网站导航</span>
							<div class="all-list">
								{{foreach from="$navData" value="$v"}}
								<div><a href="{{U('List/index',['cid'=>$v['cid']])}}">{{$v['cname']}}</a></div>
								{{endforeach}}
							</div>
						</li>
						{{if value="isset($_SESSION['nickuser'])"}}
						<li>
							<a href="{{U('Presonal/index')}}">{{$_SESSION['nickuser']['nickname']}}</a>
							<a href="{{U('Member/del')}}">退出登录</a>
							
						</li>
						{{else}}
						<li>
							<a href="{{U('Member/index')}}">登录</a>
							<a href="{{U('Member/reg')}}">注册</a>
						</li>
						{{endif}}
						<li class="order"><a href="{{U('Presonal/order')}}">我的订单</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<!--/header-->
	<!--conten-->
	<div id="content">
		<!--nav-->
		<div id="nav">
			<div class="nav-top">
				<a ><img src="./Public/home/images/1.jpg"/></a>
				<a ><img src="./Public/home/images/2.jpg"/></a>
				<a ><img src="./Public/home/images/3.jpg"/></a>
				<a ><img src="./Public/home/images/4.jpg"/></a>
				<ul id="ul">
					<li></li>
					<li></li>
					<li></li>
					<li></li>
				</ul>
				<div class="btn">
					<div class="btn-left">&lt;</div>
					<div class="btn-right">&gt;</div>
				</div>
			</div>
			<div class="nav-bottom">
				{{foreach from="$recommendGoods" value="$v"}}
				<a href="{{U('Content/index',['gid'=>$v['gid']])}}"><img src="{{$v['pic']}}" alt="" /></a>
				{{endforeach}}
			</div>
		</div>
		<!--/nav-->
		<!--new-->
		<h4 class="title">新品推荐</h4>
		<div class="hot-box">
			{{foreach from="$newGoodsData" value="$n"}}
			<div class="list-box">
				<a href="{{U('Content/index',['gid'=>$n['gid']])}}">
					<img src="{{$n['pic']}}" alt="" />
					<p>{{$n['gname']}}</p>
					<p>{{$n['shopprice']}}元</p>
				</a>
			</div>
			{{endforeach}}
		</div>
		<!--/new-->
		<!--hot-->
		<h4 class="title">畅销商品</h4>
		<div class="hot-box">
			{{foreach from="$goodsData" value="$g"}}
			<div class="list-box">
				<a href="{{U('Content/index',['gid'=>$g['gid']])}}">
					<img src="{{$g['pic']}}" alt="" />
					<p>{{$g['gname']}}</p>
					<p>{{$g['shopprice']}}元</p>
				</a>
			</div>
			{{endforeach}}	
		</div>
		<!--/hot-->
		<!--parts-->
		<h4 class="title" style="border: none;">精美商品</h4>
		<div class="parts-box">
			<div class="parts-left">
				<div class="left-top-left">
					<a href="{{U('Content/index',['gid'=>$vrData['gid']])}}">
						<div class="massage">
							<h3>{{$vrData['gname']}}</h3>
							<p class="massage-name">{{$vrData['gname']}}</p>
							<p class="massage-money">{{$vrData['shopprice']}}元</p>
						</div>
						<div class="massage-img">
							<img src="{{$vrData['pic']}}" alt="" />
						</div>
					</a>
				</div>
				{{foreach from="$otherGoodsData" value="$o"}}
				<div class="left-other">
					<a href="{{U('Content/index',['gid'=>$o['gid']])}}">
						<div class="img">
							<img src="{{$o['pic']}}" alt="" />
						</div>
						<p class="other-name">{{$o['gname']}}</p>
						<p class="other-money">{{$o['shopprice']}}元</p>
					</a>
				</div>
				{{endforeach}}
			</div>
			<div class="parts-right">
				<p class="hot-parts"></p>
				<ul>
					{{foreach from="$oneGoodsData" $key="$k"value="$v"}}
					<li>
						<a href="{{U('Content/index',['gid'=>$v['gid']])}}">
							<img src="{{$v['pic']}}" alt="" />
							<p class="sp">{{$k+1}}</p>
							<span>{{$v['gname']}}<br />
								<em><i>{{$v['shopprice']}}</i>元</em>
							</span>
						</a>
					</li>
					{{endforeach}}
				</ul>
			</div>
		</div>
		<!--/parts-->
	</div>
	<!--/conten-->
	<!--footer-->
	{{include file="../Common/footer"}}
	<!--/footer-->
	</body>
</html>
